import request from '@/utils/request'


// 查询供需超市列表
export function pageSupplyShop(data) {
  return request({
    url: '/bt/supplyShop/pageSupplyShop',
    method: 'post',
    data: data
  })
}

//保存
export function addSaveSupplyShop(data) {
  return request({
    url: '/bt/supplyShop/addSaveSupplyShop',
    method: 'post',
    data: data
  })
}

//提交
export function addSubmitSupplyShop(data) {
  return request({
    url: '/bt/supplyShop/addSubmitSupplyShop',
    method: 'post',
    data: data
  })
}

//下架
export function soldOutSupplyShop(data) {
  return request({
    url: '/bt/supplyShop/soldOutSupplyShop',
    method: 'post',
    data: data
  })
}


//详情
export function fetchSupplyShop(data) {
  return request({
    url: '/bt/supplyShop/fetchSupplyShop',
    method: 'post',
    data:data
  })
}

// 全部供需超市列表
export function delSupplyShop(data) {
  return request({
    url: '/bt/supplyShop/deleteSupplyShop',
    method: 'post',
    data: data
  })
}

export function getTypeOptions() {
  return request({
    url: '/bt/supplyShop/getTypeOptions',
    method: 'get'
  })
}
